package base.sys.api.enetity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import base.core.api.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* @Description 字典项
* @Author elegant
* @CreatDate 2022/1/8 16:08
*/
@Data
@Accessors(chain = true)
@Schema(description = "字典项")
@TableName("base_sys_dict_item")
public class SysDictItem extends BaseEntity {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    Integer id;

    @Schema(description = "显示标签")
    String label;

    @Schema(description = "字典项码值")
    String value;

    @Schema(description = "字典类型")
    String code;

    @Schema(description = "排序")
    Integer sort;

    @Schema(description = "是否失效")
    Boolean disabled;
}
